const express = require('express')
const cors = require('cors')
const morgan = require('morgan')
const router = require('./router')
require('./model')
const app = express()
app.use(morgan('dev'))
app.use(express.json())
app.use(cors())
app.use(router)

app.listen('3001', () => {
  console.log('api server is running...');
})